package bb.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import bb.entity.Product;
import bb.repository.ProductRepository;

/**
 * Simple Spring service bean to expose the results of a trivial database call
 */
@Component
public class ProductService {

  @Autowired
  private ProductRepository repo;
  

  public List<Product> getAllProducts() {
	  
	  
	  
    return repo.findAll();
  }

}
